#pragma once

#include "pipewiresourceitem.h"
#include "screencastingrequest.h"

#include <QQmlContext>
#include <QQuickView>
#include <QUuid>

#include <KWayland/Client/connection_thread.h>
#include <KWayland/Client/plasmawindowmanagement.h>
#include <KWayland/Client/registry.h>

class Widget : public QQuickView
{
    Q_OBJECT

public:
    Widget();
    ~Widget();

    Q_INVOKABLE void slotAnyway();

private:
    KWayland::Client::Registry *m_registry = nullptr;
    KWayland::Client::PlasmaWindowManagement *m_windowManagement = nullptr;
    KWayland::Client::ConnectionThread *m_connection = nullptr;

    QList<QUuid> m_uuidList;
};